#include "fan.h"

void fan_Init(){

    gpio_set_direction(FAN,1);
}
void Fan_CTRL(uint8_t sta){
    switch(sta){
        case 1:     FAN_ON;delay(30);FAN_OFF;delay(10);break;
        case 2:     FAN_ON;delay(20);FAN_OFF;delay(10);break;
        case 3:     FAN_ON;delay(10);FAN_OFF;delay(10);break;
        case 4:     FAN_OFF;break;

    }

}